<?php

/**
 * Index:      Bootstrap
 *
 * @author     Dread <dreadlokeur@gmail.com>
 * @version    1.0
 * @license    Licence publique générale GNU http://www.gnu.org/licenses/gpl.html
 * @copyright  Copyright 2011 - MidichlorianPHP and contributors
 */
use Application\InitApplication;
use System\InitSystem;
use System\library\config\Config;

//Inclusion des classes Singleton et InitSystem
require_once '..' . DIRECTORY_SEPARATOR . 'system' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'pattern' . DIRECTORY_SEPARATOR . 'Singleton.abstract.php';
require_once '..' . DIRECTORY_SEPARATOR . 'system' . DIRECTORY_SEPARATOR . 'InitSystem.class.php';

// Initialisation du System
$sysConf = array(
    'charset' => 'UTF-8',
    'language' => 'fr_FR',
    'timezone' => 'Europe/Paris'
);
$sys = InitSystem::getInstance(true);
$sys->init(true, $sysConf);

// Démarrage et initialisation de l'application
require_once Config::getCons('PATH_APPLICATION') . 'InitApplication.class.php';
$app = InitApplication::getInstance();
$app->init();
$app->start();

?>